package com.ruoyi.bantong.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 席位玩法详情对象 bt_placecard_pool_details
 * 
 * @author laohei
 * @date 2021-01-24
 */
public class BtPlacecardPoolDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer ppdId;
    /** 奖池ID */
    private Integer ppId;
    /** 用户ID */
    private Integer userId;
    /** 用户头像 */
    private String avatar;
    /** 中奖等级 */
    private Integer level;
    /** 用户姓名 */
    private String name;
    /** 结果 0失败 1成功 */
    @Excel(name = "结果 0失败 1成功")
    private Integer result;
    /** 保证金 */
    private Integer earnestMoney;
    /** 兑换金额 */
    private Integer convertMoney;
    /** 版通申请id */
    private Integer paId;
    /** 版通申请状态   0待审核 1审核完成 2过期 -1中奖'*/
    private Integer paStatus;
    /** 未中奖获得金豆 */
    private Integer gotBean;
    /** 奖池编号 */
    private String ppCode;
    /** 开奖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date publishTime;

    /** 过期时间 */
    private Long outTime;

    /** 中奖获得奖券 */
    private Integer ticketNum;

    public Integer getPpdId() {
        return ppdId;
    }

    public void setPpdId(Integer ppdId) {
        this.ppdId = ppdId;
    }

    public Integer getPpId() {
        return ppId;
    }

    public void setPpId(Integer ppId) {
        this.ppId = ppId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public void setResult(Integer result)
    {
        this.result = result;
    }

    public Integer getResult() 
    {
        return result;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getEarnestMoney() {
        return earnestMoney;
    }

    public void setEarnestMoney(Integer earnestMoney) {
        this.earnestMoney = earnestMoney;
    }

    public Integer getPaId() {
        return paId;
    }

    public void setPaId(Integer paId) {
        this.paId = paId;
    }

    public Integer getPaStatus() {
        return paStatus;
    }

    public void setPaStatus(Integer paStatus) {
        this.paStatus = paStatus;
    }

    public String getPpCode() {
        return ppCode;
    }

    public void setPpCode(String ppCode) {
        this.ppCode = ppCode;
    }

    public Integer getGotBean() {
        return gotBean;
    }

    public void setGotBean(Integer gotBean) {
        this.gotBean = gotBean;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Integer getConvertMoney() {
        return convertMoney;
    }

    public void setConvertMoney(Integer convertMoney) {
        this.convertMoney = convertMoney;
    }

    public Long getOutTime() {
        return outTime;
    }

    public void setOutTime(Long outTime) {
        this.outTime = outTime;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getTicketNum() {
        return ticketNum;
    }

    public void setTicketNum(Integer ticketNum) {
        this.ticketNum = ticketNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ppdId", getPpdId())
            .append("userId", getUserId())
            .append("result", getResult())
            .toString();
    }
}
